<template>
  <a-rate>
    <template v-for="item in slotKeys.filter(key=>props[key])" #[item]>
      <component :is="renderSlot(props,item)"/>
    </template>
  </a-rate>
</template>
<script setup lang="ts">
import { PropType, VNode } from 'vue';
import { renderSlot } from '../index'
const slotKeys = ['character']
const props = defineProps({
  character: {
    type: [String, Object, Function] as PropType<String | VNode |(()=>VNode | String)>
  },
})
</script>
<style lang="less" scoped>

</style>